
import request from './request'


export function checkPhoneApi(data) {
    return request.post('https://lhx123.love:3333/app/finduser', data)
}


export function todoSentCode(params) {
    return request.get('http://lhx123.love:3300/captcha/sent', {
        params
    })
}

export function checkCaptcha(params) {
    return request.get('http://lhx123.love:3300/captcha/verify', {
        params
    })
}


export const todoRegister = (data) => request.post('https://lhx123.love:3333/app/register', data)

export const todoLogin = (data) => request.post('https://lhx123.love:3333/app/login', data)

// export const checkPhoneApi = (data) => request.post('/api/user/docheckphone', data)  // 验证手机号码是否被注册过

// export const todoSentCode = (params) => request.post('/api/user/dosendmsgcode', { params }) // 发送短信验证码

// export const checkCaptcha = (params) => request.post('/api/user/docheckcode', { params })   // 验证短信验证码

// export const todoRegister = (data) => request.post('/api/user/dofinishregister', data)  // 注册

// export const todoLogin = (data) => request.post('/api/user/login', data)

export const todogetuserinfo = (params) => request.get('/api/user/info', { params })    //  获取用户信息
